home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / Demos / Bombardier_PC / BSCRIPTS.CST / 00028_Script_map rollovers < prev    next >
Text File  |  1999-04-25  |  2KB  |  67 lines

  1. -- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
  2. -- Developed for Bombardier, Inc.
  3. --
  4. -- All programming developed by: 
  5. -- Robert Fabricant, Valerie Valoueva, Ossi Shaked, 
  6. -- Henry Sauvageot, Chris Howell & Chris Girand
  7. --
  8. -- Use of this code by parties other than @radical.media, inc. or their
  9. --agents 
  10. -- without the express written consent of @radical.media, inc. AND Concurrent 
  11. -- New Media Group, L.L.C. is strictly prohibited.
  12. ------------------------------------------------------
  13. -------*This script is not used in this version of the movie*----------
  14.  
  15. property Rimage,Dimage,image,sprt, pair
  16.  
  17. on getPropertyDescriptionList
  18.   set description=[:]
  19.   
  20.   addProp description,#sprt,[#default:"",#format:#integer, ¼
  21.   #comment:"The sprite number "]
  22.   
  23.   addProp description,#pair,[#default:"",#format:#integer, ¼
  24.   #comment:"The city pair sprite number "]
  25.   
  26.   return description
  27. end
  28.  
  29. on getbehaviorDescription
  30.   return "changes the image on rollover"
  31. end
  32.  
  33.  
  34. on mouseEnter me
  35.   global gSub 
  36.   if gSub <> sprt then
  37.     set the castnum of sprite sprt to the castnum of sprite sprt +1
  38.     if pair<>0 then
  39.       set the castnum of sprite pair to the castnum of sprite pair +1
  40.     end if
  41.     updatestage 
  42.   end if
  43. end
  44.  
  45. on mouseleave
  46.   global gSub
  47.   if gSub <> sprt then
  48.     set the castnum of sprite sprt to the castnum of sprite sprt -1
  49.     if pair<>0 then
  50.       set the castnum of sprite pair to the castnum of sprite pair -1
  51.     end if
  52.     updatestage
  53.   end if
  54. end
  55.  
  56. on mouseup me
  57.   global gSub,gSImage,gMode
  58.   
  59.   set gMode="menu"
  60.   
  61.   if gSub <> sprt then
  62.     set gSub = sprt
  63.   end if
  64.   pass
  65. end
  66.  
  67.